FROM 192.168.206.24/library/openjdk:17
EXPOSE 8080

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

VOLUME /tmp
ADD target/*.jar /app.jar
RUN  touch /app.jar
ENTRYPOINT ["java","-jar","-Xms256m","-Xmx512m","/app.jar","--spring.profiles.active=prod"]
